<template>
  <div class="home">
    <ul>
      <li v-for="(item, index) in list" :key="index">
        <!-- <DhVideo :info="item" :WndIndex="index"></DhVideo> -->
        <iframe :src="`${publicPath}dhVedio/index.html?dindex=${index}&index=1&szIP=${item.port}pageNum=1`"/>
      </li>
    </ul>
  </div>
</template>

<script>
// @ is an alias to /src

import DhVideo from "@/components/dh_video.vue";
export default {
  components: { DhVideo },
  data() {
    return {
      publicPath: process.env.BASE_URL,
      list: [
        {
          url: "192.168.2.108",
          name: "大华摄像头",
          user: "admin",
          port: "80",
          pwd: "dk16888888",
        },
      ],
    };
  },

};
</script>
<style lang="less" scoped>
.home {
  margin: 0 auto;
  width: 80%;
  .btn {
    display: inline-block;
    width: 80px;
    background-color: #409eff;
    padding: 2px 8px;
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
  }

  ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    li {
      width: 40%;
      height: 360px;
      // background-color: pink;
      margin-bottom: 10px;
      position: relative;
      iframe{
        width: 100%;
        height: 100%;
      }
    }
  }
}
</style>
